package com.kapukapu.user.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kapukapu.user.entity.SysRole;
import com.kapukapu.user.mapper.SysRoleMapper;
import com.kapukapu.user.service.SysRoleService;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author sivan
 * @since 2020-03-16
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole>
		implements SysRoleService {

	@Override
	public List<SysRole> getRolesByUserId(long userId) {
		return baseMapper.getRolesByUserId(userId);
	}
}
